import java.util.Arrays;

public class java20231125 {
    public static void main1(String[] args) {
        int[] arr={2,2,1,1,1,2,2,2};
        int ret=fun(arr);
        System.out.println(ret);
    }

    public static int fun(int[] arr){
        Arrays.sort(arr);
        return arr[arr.length/2];
    }

    public static void main2(String[] args) {
        int[] arr={1,2,34,3,4,5,7,23,12};
        int[] arr1={2,6,4,1};
        boolean flag =fun2(arr);
        System.out.println(flag);
    }

    public static boolean fun2(int[] arr){
        int count = 0 ;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] % 2 != 0){
                count++;
                if(count == 3)
                {
                    return true;
                }
            }else{
                count = 0;
            }
        }
       return false;
    }


    public static void main2(String[] args) {
        String s;
        System.out.println("s=" + s );
    }



    public static void main(String[] args) {

    }
}
